package com.lin.Bank;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 银行网关应用程序
 *
 * @author Li
 * @date 2022/04/20
 */
@SpringBootApplication
@RestController
//开启服务注册
@EnableDiscoveryClient
public class BankGateWayApplication {
    public static void main(String[] args) {
        SpringApplication.run(BankGateWayApplication.class,args);
    }

    @GetMapping("/hello")
    public String hello(){
        return "gateway";
    }
}
